package com.farm.kaiping.service;

import com.farm.kaiping.entity.FarmUser;
import com.farm.kaiping.entity.SysUser;
import com.farm.kaiping.po.SysUserLoginPO;
import com.farm.kaiping.po.SysUserPO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
 * 用户表(SysUser)表服务接口
 *
 * @author farm
 * @since 2024
 */
public interface SysUserService extends IService<SysUser> {

	/**
	 * 分页查询
	 */
	Page<SysUser> getSysUserPage(Page page,SysUserPO sysUserPO);
	
	/**
	 * 查询列表
	 */
	List<SysUser> getSysUserList(SysUserPO sysUserPO);

	/**
	 * 获取一条数据
	 */
	SysUser getSysUser(SysUserPO sysUserPO);

	/**
	 * 根据用户名获取一条数据
	 */
	SysUser getSysUser(String userName);

	/**
	 * 根据用户ID获取一条数据
	 */
	SysUser getSysUser(Integer userId);

	/**
	 * 根据用户手机号获取一条数据
	 */
	SysUser getSysUserByUserPhone(String phone);

	/**
	 * 根据用户身份证号获取一条数据
	 */
	SysUser getSysUserByIdCard(String idCard);

	/**
	 * 新增
	 */
	Integer saveSysUser(SysUserPO sysUserPO);

	/**
	 * 修改
	 */
	String updateSysUser(SysUserPO sysUserPO);

	/**
	 * 删除
	 */
	String removeSysUser(SysUserPO sysUserPO);

	/**
	 * 根据用户名获取一条数据
	 */
	FarmUser getCacheSysUserByUserId(Integer userId);

	/**
	 * 修改密码
	 */
	String changePassword(SysUserPO sysUserPO);

	FarmUser getUserLogin(SysUserLoginPO sysUserLoginPO);


}

